#pragma once
#include "list.h"

struct cache_pool {
	struct list *cache_list;
	char *type_name;
};

extern void cache_init(struct cache_pool *pool, const char *type_name);

extern void* cache_get(struct cache_pool *pool);

extern void cache_put(struct cache_pool *pool, void *target);
